package com.ai.entity.comm;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author chen
 * @since 2023-04-03 21:17:12
 */
@Getter
@Setter
@TableName("sys_netty")
@ApiModel(value = "SysNetty对象", description = "")
@ToString
public class SysNetty implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("netty ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("netty 代号")
    @TableField("code")
    private String code;

    @ApiModelProperty("netty 端口号")
    @TableField("port")
    private Integer port;

    @ApiModelProperty("netty IP")
    @TableField("ip")
    private String ip;

    @ApiModelProperty("客户端且固定端口时填写")
    @TableField("regular_port")
    private int regularPort;

    @ApiModelProperty("是否本机")
    @TableField("is_local")
    private Integer isLocal;

    @ApiModelProperty("是否启动")
    @TableField("is_start")
    private Integer isStart;

    @ApiModelProperty("netty类型（1.服务端，2.客户端）")
    @TableField("netty_type")
    private Integer nettyType;


}
